package com.java.test.user.onlinemembermanagepush;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

/**
 * OnLineMemberManageDao
 *
 * @author lijie1
 * @version 1.0
 * @date 2020/7/30 0030 11:24
 */
@Component
public class OnLineMemberManageDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;

    public int deleteOnLineMember(String id) {
        String sql ="delete from member_online t where t.userId = ? ";
        return jdbcTemplate.update(sql,id);
    }
}
